package com.bw.ivideo.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/21 10:58
 * @Description :
 */
class FragmentAdapter(private val list: MutableList<Fragment>, private val fm: FragmentManager): FragmentStatePagerAdapter(fm) {
    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list[position]
    }

}